#include "Binsort.h"

void printArray(int * dataarray, int size)
{
	for (int index = 0; index < size; index++)
		printf("%d ", dataarray[index]);
	printf("\n");
}//end method: Print array.

int main()
{
	int intarray[] = { 5, 3, 2, 8, 9, 11, 5, 6, 2, 1, 3, 14 };
	printf("Array before sorting: \n");
	printArray(intarray, 12);
	BinSort sortarray(intarray, 12);
	printf("Array after sorting: \n");
	int * newarray = sortarray.getSortedArray();
	printArray(newarray, 12);
	system("pause");
	return 0;
}